package com.googlecode.stockhamster.stockstat;

public interface IStockStat {
	// Access
	
	public Boolean isValid(Integer stockId);

	public Integer[] getStocks();

	public Long getPrice(Integer stockId);

	public String getName(Integer stockId);

	public String getCategory(Integer stockId);

	public Long[] getHistory(Integer stockId);

	public Integer getStockId(String stockName);
	
	public Integer[] getCategoryStocks(String category);
	
	// Administration
	public Boolean updatePrice(String code, Integer stockId, Long price,
			Long volumes);

	public Integer addStock(String code, String name, String category,
			Long price);

	public Boolean delStock(String code, Integer stockId);

	public Boolean setStockLimited(String code, Integer stockId, Boolean limited);
}
